package uestc.lj.gulishop.order.dao;

import org.apache.ibatis.annotations.Param;
import uestc.lj.gulishop.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单
 *
 * @author crazlee
 * @email peterlee0@163.com
 * @date 2021-05-21 19:25:52
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 根据订单号修改订单的状态
     *
     * @param outTradeNo
     * @param code
     */
    void updateOrderStatus(@Param("outTradeNo") String outTradeNo, @Param("code") Integer code);
}
